package com.cuitrip.business.order.detail.orderstatus.finder;

import com.cuitrip.business.order.detail.orderstatus.BaseOrderFormPresent;
import com.cuitrip.business.order.detail.ui.IFinderOrderDetailView;
import com.cuitrip.business.order.model.OrderItem;
import com.cuitrip.service.R;
import com.cuitrip.util.PlatformUtil;

/**
 * Created by baziii on 15/8/11.
 */
public class FinderWaitStartPresent extends BaseOrderFormPresent<IFinderOrderDetailView> {

    public FinderWaitStartPresent(IFinderOrderDetailView orderDetailView, OrderItem orderItem) {
        super(orderDetailView, orderItem);
    }

    @Override
    public void render() {
        mOrderDetailView.renderUi(build(mOrderItem));
    }

    @Override
    public void clickBottomAction() {
        mOrderDetailView.jumpStartOrder(mOrderItem);
    }

    @Override
    public void clickBottomText() {
        mOrderDetailView.jumpCancelOrder(mOrderItem);
    }

    @Override
    public String getBottomActionText(OrderItem orderItem) {
        return PlatformUtil.getInstance().getString(R.string.trip_operation_start);
    }

    @Override
    public String getBottomText(OrderItem orderItem) {
        return PlatformUtil.getInstance().getString(R.string.book_operation_cancel);
    }

    @Override
    public BottomButtonStyle getBottomButtonStyle(OrderItem orderItem) {
        return BottomButtonStyle.NONE;
    }

}
